package com.eight.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author 郭坤
 * @since 2023-02-24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="baseArea", description="地区实体类")
@TableName(value = "base_area")
public class BaseArea implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "地址ID")
    @TableField(value = "base_areaid")
    private Integer baseAreaid;

    @ApiModelProperty(value = "地区名字")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "上级路径ID")
    @TableField(value = "parentid")
    private Integer parentid;

    @ApiModelProperty(value = "顺序")
    @TableField(value = "vieworder")
    private Integer vieworder;

    @TableField(exist = false)
    private Integer provinceId;

    @TableField(exist = false)
    private Integer cityId;

    @TableField(exist = false)
    private Integer areaId;


}
